package com.woniu.cms.auth.core.mapper;

import com.woniu.cms.auth.core.entity.RbacPerm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.cms.auth.core.vo.PermVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lilili
 * @since 2022-09-16
 */
public interface RbacPermMapper extends BaseMapper<RbacPerm> {

    List<PermVo> getChildren(Integer id);

    List<PermVo> getAllPermVo();


    int doAllot(Map<String, Object> map);

    int doUnAllot(Map<String, Object> map);


    List<Integer> getAllPermIdByRoleId(Integer roleId);
}
